package com.example.a2205_fx.database;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;

@Dao
public interface AccountDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insertA(Account account);
    @Update
    void updateA(Account account);
    @Query("select * from account where username=:username")
    Account queryBy(String username);
}
